import { PolylineEdge, PolylineEdgeModel, h } from '@logicflow/core';

export class BaseTopoConnectionModel extends PolylineEdgeModel {
  getEdgeStyle() {
    const style = super.getEdgeStyle();
    style.stroke = this.isSelected ? 'rgb(38,134,255)' : '#fff';
    style.fill = 'transparent';
    return style;
  }
}

export class BaseTopoConnectionView extends PolylineEdge {}

export default {
  type: 'BaseTopoConnection',
  view: BaseTopoConnectionView,
  model: BaseTopoConnectionModel,
};
